import {createAPI,createParamsAPI,createUploadAPI,createFormAPI} from '@/utils/http'

export const getAuthList = data => createParamsAPI('/auth/list','post',data);
export const saveAuth = data => createAPI('/auth/save','post',data);
export const updateAuth = data => createAPI('/auth/update','put',data);
export const deleteAuth = data => createAPI(`/auth/delete/${data.id}`,'delete',data);
//分配权限
export const distributionAuth = data => createParamsAPI(`/auth/distribution/${data.userId}`,'post',data);